<?php
use Base\AdminController;
use JetBrains\PhpStorm\NoReturn;

class ArticleController extends AdminController
{
    protected string $table = 'articles';

    protected string $model = "article";

    #[NoReturn] public function init(): void
    {
		if (Request::input("title")) {
            $this->where[] = ['title','like', '%'.Request::input("title").'%'];
        }
        parent::init();
        $this->includes = ["category:id,title"];
    }
}
